using Gateway.Common.Entity;

namespace Gateway.Domain.Entities;

/// <summary>
/// 项目表
/// </summary>
public class Project : AggregateRootEntityBase
{
    /// <summary>
    /// 项目名称
    /// </summary>
    public string ProjectName { get; private set; }

    /// <summary>
    /// 项目编码
    /// </summary>
    public string ProjectCode { get;private set; }

    /// <summary>
    /// 排序序号
    /// </summary>
    public int SeqNo { get;private set; }

    public Project()
    {
    }

    public Project(string projectName = default, int seqNo = 0,string projectCode=default)
    {
        this.ProjectName = projectName;
        this.SeqNo = seqNo;
        this.ProjectCode = projectCode;
    }
    
    public void Update(string projectName = default, int seqNo = 0,string projectCode=default)
    {
        this.ProjectName = projectName;
        this.SeqNo = seqNo;
        this.ProjectCode = projectCode;
    }
}